package whr.modules.interview.controller;

import java.util.Arrays;
import java.util.List;
import java.util.Map;

import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import whr.common.utils.PageUtils;
import whr.common.utils.R;
import whr.modules.interview.entity.MinzuEntity;
import whr.modules.interview.service.MinzuService;


/**
 * 
 *
 * @author youkun
 * @email youkun@gmail.com
 * @date 2024-09-25 10:46:31
 */
@RestController
@RequestMapping("interview/minzu")
public class MinzuController {

    @Autowired
    private MinzuService minzuService;

    /*
    * 获取所有的民族code以及民族名称
    * */
    @RequestMapping("/getMinzuList")
    public R getMinzuList(){
        List<MinzuEntity> list = minzuService.getMinzuList();
        return R.ok().put("minzuList", list);
    }




}
